package com.kuangjia.student_ems.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AttendanceStatisticsDTO {
    
    private Long userId;
    private String userName;
    private String departmentName;
    private Long normalDays;
    private Long lateDays;
    private Long earlyLeaveDays;
    private Long absentDays;
    private Long leaveDays;
    private Long totalDays;
    
    // 计算总天数
    public void calculateTotalDays() {
        this.totalDays = normalDays + lateDays + earlyLeaveDays + absentDays + leaveDays;
    }
} 